/**
 * Created by jaliu on 2015/3/15.
 */
module.exports = function (app) {
    var marketing = require('../../controllers/backoffice/backOffice-marketing-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/getCommunityQuestionStatistics', marketing.getCommunityQuestionStatistics);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/getUserListByHobby', marketing.getUserListByHobby);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/addCommunity', marketing.addCommunity);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/searchCommunityByName/:name/:city', marketing.searchCommunityByName);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/changeCommunityStatus', marketing.changeCommunityStatus);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/getCommunityApplications', marketing.getCommunityApplications);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/createUserCsv', marketing.createUserCsv);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/createUgcCsv', marketing.createUgcCsv);
    app.get('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/getOperatePushStatistics', marketing.getOperatePushStatistics);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/marketing/addActivityToFreshNews', marketing.addActivityToFreshNews);
};